﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;

/// <summary>
/// Base Class for all UserControls to use
/// </summary>
public class UserControlBase : UserControl
{
    public PageBase CarbonExchangePage
    {
        get 
        { 
            var tmp = base.Page as PageBase;
            if (tmp == null)
            {
                throw new ApplicationException("Aspx Page does not inherit from PageBase as required");
            }
            return tmp;
        }
    }
}
